Automattic\WooCommerce\Blocks\BlockTemplatesController D

Total Complexity 161
Dependencies 14
Dependents 1
Total lines 860
Lines of code 519
Logical lines of code 267
Comment lines 238
Methods 24
Properties 3

Methods 24

Method Rating Maintainability Complexity Lines of code
render_block_template()
D
33 47 85
add_block_templates()
C
35 27 76
get_block_templates_from_woocommerce()
A
43 12 49
get_block_file_template()
A
47 8 34
get_block_template_fallback()
S
46 6 37
template_permalink_settings()
S
47 6 37
init()
S
48 5 31
remove_block_template_support_for_shop_page()
S
60 6 13
sync_endpoint_with_page()
S
54 4 23
render_woocommerce_template_part()
S
63 5 9
migrate_page()
S
53 3 24
update_product_archive_title()
S
64 4 10
check_should_use_blockified_product_grid_templates()
S
64 4 10
update_template_permalink()
S
65 3 9
get_block_template_part()
S
67 3 7
maybe_migrate_content()
S
67 3 8
__construct()
S
63 3 9
block_template_is_available()
S
65 3 9
get_templates_directory()
S
66 3 9
add_archive_product_to_eligible_for_fallback_templates()
S
61 2 14
has_migrated_page()
S
78 1 3
get_block_templates()
S
70 1 6
get_block_templates_from_db()
S
75 1 4
get_template_path_from_woocommerce()
S
78 1 3